package com.waiter.moximoxi;

import android.content.Intent;
import android.os.Bundle;

import com.waiter.moximoxi.base.BaseActivity;
import com.waiter.moximoxi.net.API;
import com.waiter.moximoxi.ui.LoginActivity;

/**
 * Created by 17639 on 2020/10/14.
 */

public class StartActivity extends BaseActivity {

    @Override
    public void initContent(Bundle savedInstanceState) {

    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        if (API.isLogin()) {
            startActivity(new Intent(mActivity, MainActivity.class));
        } else {
            startActivity(new Intent(mActivity, LoginActivity.class));
        }
        finish();
    }
}
